import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const Index: AppRouteRecordRaw = {
  path: '/index',
  name: 'index',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.index',
    requiresAuth: true,
    icon: 'icon-archive',
    order: -100,
    roles: ['*'],
    hideInMenu: false,
  },
  redirect: '/index',
  children: [
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/index/index.vue'),
      meta: {
        locale: 'menu.index',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
        activeMenu: 'index',
      },
    },
  ],
};

export default Index;
